//
//  TXLocationManagerV2.h
//  TXLocation
//
//  Created by xuesong zhou on 2022/1/28.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "MapInfo.h"
@class TXPosition;
@protocol TXLocationManagerDelegate <NSObject>

@required
- (void) didUpdateLocation:(TXPosition *)result;
- (void) didFailWithError:(NSError *)error;
- (void) didUpdateLoadMap:(int)result;
- (void) didGetMapInfo:(MapInfo *)result;
- (void) didUpdateAngle:(CLHeading *)result;
@end

@interface TXLocationManagerV2 : NSObject
@property (nonatomic,weak) id<TXLocationManagerDelegate> delegate;
@property (nonatomic, readonly) TXPosition *location;
- (void)LoadBeacon;
- (void)LoadBeaconV2;
- (void)startScan;
- (void)startMapScan;
- (void)stopScan;
- (void)setUpelecFlag:(bool)flag;
- (void)setUpelecUrl:(NSString *)url;
- (void)setServerUrl:(NSString *)url;
- (void)setMapInfoUrl:(NSString *)url;
- (void)setMapId:(NSString *)mapid;
- (void)setOpenId:(NSString *)openid;
- (void)setRequestTime:(double)time;
- (void)setShowLog:(bool)flag;
- (void)setIsCar:(bool)flag;
- (NSString *)getVersion;
- (void)LoadBeaconFormFile:(NSString *)path;
@end
